]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Set running indicator dot offset via CSS
authorSebastian Keller <skeller@gnome.org>
Sun, 17 Mar 2024 11:43:03 +0000 (12:43 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 May 2024 19:02:42 +0000 (19:02 +0000)
commit31997fa2f9f3183d97c22f073e878b308331f288
tree95147a7d5373e722e3e5114af4bd0e6453145dd8
parent0d3c298c70b706bd0c3ce694167622bc263a0610
appDisplay: Set running indicator dot offset via CSS

The offset was given as a hardcoded (physical) pixel value and did not
take scaling into account. This lead to it being shifted closer towards
the icon as the scale increased.

This now replaces the hardcoded value with a CSS property which
automatically includes the scale factor.

Further this allows simplifying some calculations that previously were
trying to counteract the hardcoded offset using margins by using the
intended offset directly.

With this the dot in the dash is also now placed at exactly the bottom
of the hover highlight, while previously there was an unintentional 1px
space.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7488
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3245>
data/theme/gnome-shell-sass/widgets/_app-grid.scss
data/theme/gnome-shell-sass/widgets/_dash.scss
js/ui/appDisplay.js